package com.example.emb.service.common;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface CosSimilarityImpl {

    double calculateCosineSimilarity(String text1, List<Map<CharSequence,Integer>> mapList);

    List<Map<CharSequence,Integer>> getAllTermFrequencyMap(List<String> list);

    Map<CharSequence, Integer> getTermFrequencyMap(String text);

}
